<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePmsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pms', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->notNull()->default('')->comment('名称');
            $table->string('card_number')->notNull()->default('')->comment('工号');
            $table->tinyInteger('status')->notNull()->default(0)->comment('状态 0启用 1禁用');
            $table->tinyInteger('admin_id')->notNull()->default(0)->comment('管理员id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pms');
    }
}
